import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import VueResource from 'vue-resource'

import {
  Button, Form, Input, Checkbox, Icon, Layout, Menu, Table, Popconfirm, Breadcrumb, message,
  Modal, Row, Col, Radio, FormModel, Avatar, Dropdown
} from 'ant-design-vue'

Vue.use(Button)
Vue.use(Form)
Vue.use(Input)
Vue.use(Checkbox)
Vue.use(Icon)
Vue.use(Layout)
Vue.use(Menu)
Vue.use(Table)
Vue.use(Popconfirm)
Vue.use(Breadcrumb)
Vue.use(Modal)
Vue.use(Row)
Vue.use(Col)
Vue.use(Radio)
Vue.use(FormModel)
Vue.use(Avatar)
Vue.use(Dropdown)
Vue.prototype.$message = message
message.config({
  duration: 2,
  top: '100px',
  maxCount: 3
})

Vue.use(VueResource)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
